package com.versiFramework.events {	
	import flash.events.Event;

	public class serviceEvent extends Event implements IVersiEvent {
		public var _data:*;
		public var tokenProperty:*;		
		public static const FAULT:String = "_fault";
		public static const RESULT:String = "_result";
		public static const NODATA:String = "_noData";
		
		public function set data(setVal:*):void
		{
			_data=setVal;
		}
			
		public function get data():*
		{
			return _data;
		}
		
				
		public function serviceEvent(type:String, data:*=null, tokenProperty:*=null, bubbles:Boolean=false,cancelable:Boolean=false )
		{
			super( type, bubbles,cancelable );			
			this.data=data;
		}
		override public function clone():Event
		{
			return new serviceEvent(type, data, tokenProperty); // bubbling support
		} 
	}
}